package cn.scw.project.goods.domain;

import cn.scw.framework.aspectj.lang.annotation.Excel;
import cn.scw.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 广告对象 g_advertising
 *
 * @author api
 * @date 2020-05-20
 */
public class GAdvertising extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 经销商id */
    @Excel(name = "经销商id")
    private Long dealerId;

    /** 设备编号（选填） */
    @Excel(name = "设备编号", readConverterExp = "选=填")
    private String facilityCode;

    /** 广告图 */
    @Excel(name = "广告图")
    private String url;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDealerId(Long dealerId)
    {
        this.dealerId = dealerId;
    }

    public Long getDealerId()
    {
        return dealerId;
    }

    public String getFacilityCode() {
        return facilityCode;
    }

    public void setFacilityCode(String facilityCode) {
        this.facilityCode = facilityCode;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dealerId", getDealerId())
            .append("facilityCode", getFacilityCode())
            .append("url", getUrl())
            .append("createDate", getCreateDate())
            .toString();
    }
}
